﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AdminModulesAdd.ascx.cs"
    Inherits="Administrator_Controls_AdminModulesAdd" %>
<script type="text/javascript">
    $(document).ready(function () {
        $("#<%=cboCP.ClientID %>").click(function () {
            if ($(this).attr("checked")) $("#icp").css("display", "block");
            else $("#icp").css("display", "none");
        });
    });
</script>
<div class="box">
    <!-- box / title -->
    <div class="title">
        <h5>
            Thêm Menu mới
        </h5>
    </div>
    <div id="divMessage" runat="server" />
    <div class="form">
        <div class="fields">
            <div class="field first-field">
                <div class="label">
                    <label for="input-small">
                        Menu cha:</label>
                </div>
                <div class="input">
                    <asp:DropDownList ID="ddlParentMenu" runat="server" AppendDataBoundItems="true">
                        <asp:ListItem Text="Menu mới" Value="0"></asp:ListItem>
                    </asp:DropDownList>
                    <div class="note" id="NOTE_PARENT" runat="server" />
                </div>
            </div>
            <div class="field">
                <div class="label">
                    <label for="input-small">
                        Tên module:</label>
                </div>
                <div class="input">
                    <asp:TextBox ID="txtMenuName" runat="server" CssClass="small required" />
                    <div class="note" id="NOTE_NAME" runat="server" />
                </div>
            </div>
            <div class="field">
                <div class="label">
                    <label for="input-small">
                        Tên hiển thị:</label>
                </div>
                <div class="input">
                    <asp:TextBox ID="txtDesc" runat="server" CssClass="required small" />
                    <div class="note" id="NOTE_TITLE" runat="server" />
                </div>
            </div>
            <div class="field">
                <div class="label">
                    <label for="file">
                        Thumb Icon:</label>
                </div>
                <div class="input input-file">
                    <asp:FileUpload ID="fupThumbIcon" runat="server" CssClass="file" /><br />
                    <div class="note" id="NOTE_THUMB_ICON" runat="server" />
                </div>
            </div>
            <div class="field">
                <div class="label">
                    <label for="input-small">
                        Thứ tự hiển thị:</label>
                </div>
                <div class="input">
                    <asp:TextBox ID="txtSortDisplay" runat="server" CssClass="x-small number" Text="1" />
                    <div class="note" id="NOTE_SORT" runat="server" />
                </div>
            </div>
            <div class="field">
                <div class="label">
                    <label>
                        Hiển thị:</label>
                </div>
                <div class="input">
                    <asp:CheckBox ID="cboDisOnHome" runat="server" />
                    <div class="note" id="NOTE_DISPLAY" runat="server" />
                </div>
            </div>
            <div class="field">
                <div class="label">
                    <label>
                        Hiển thị tại Control-Panel:</label>
                </div>
                <div class="input">
                    <asp:CheckBox ID="cboCP" runat="server" />
                    <div class="note" id="Div1" runat="server" />
                </div>
            </div>
            <div class="field" id="icp" style="display: none;">
                <div class="label">
                    <label for="file">
                        Icon Control-Panel:</label>
                </div>
                <div class="input input-file">
                    <asp:FileUpload ID="fulIcon" runat="server" CssClass="file" /><br />
                    <div class="note" id="NOTE_ICON" runat="server">
                    </div>
                </div>
            </div>
            <div class="buttons">
                <div class="highlight">
                    <asp:Button ID="btnSubmit" runat="server" Text="Thêm Mới" OnClick="btnSubmit_Click" /></div>
                <input type="reset" name="reset" value="Làm lại" />
            </div>
        </div>
    </div>
</div>
